package com.ynet.finmall.inmanage.model;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class ImLogincontrolQuery {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    protected Integer pageNo = 1;

    protected Integer startRow;

    protected Integer pageSize = 10;

    protected String fields;

    public ImLogincontrolQuery() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setPageNo(Integer pageNo) {
        this.pageNo=pageNo;
        this.startRow = (pageNo-1)*this.pageSize;
    }

    public Integer getPageNo() {
        return pageNo;
    }

    public void setStartRow(Integer startRow) {
        this.startRow=startRow;
    }

    public Integer getStartRow() {
        return startRow;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize=pageSize;
        this.startRow = (pageNo-1)*this.pageSize;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setFields(String fields) {
        this.fields=fields;
    }

    public String getFields() {
        return fields;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andUserIdIsNull() {
            addCriterion("user_id is null");
            return (Criteria) this;
        }

        public Criteria andUserIdIsNotNull() {
            addCriterion("user_id is not null");
            return (Criteria) this;
        }

        public Criteria andUserIdEqualTo(String value) {
            addCriterion("user_id =", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotEqualTo(String value) {
            addCriterion("user_id <>", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdGreaterThan(String value) {
            addCriterion("user_id >", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdGreaterThanOrEqualTo(String value) {
            addCriterion("user_id >=", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdLessThan(String value) {
            addCriterion("user_id <", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdLessThanOrEqualTo(String value) {
            addCriterion("user_id <=", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdLike(String value) {
            addCriterion("user_id like", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotLike(String value) {
            addCriterion("user_id not like", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdIn(List<String> values) {
            addCriterion("user_id in", values, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotIn(List<String> values) {
            addCriterion("user_id not in", values, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdBetween(String value1, String value2) {
            addCriterion("user_id between", value1, value2, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotBetween(String value1, String value2) {
            addCriterion("user_id not between", value1, value2, "userId");
            return (Criteria) this;
        }

        public Criteria andUserNameIsNull() {
            addCriterion("user_name is null");
            return (Criteria) this;
        }

        public Criteria andUserNameIsNotNull() {
            addCriterion("user_name is not null");
            return (Criteria) this;
        }

        public Criteria andUserNameEqualTo(String value) {
            addCriterion("user_name =", value, "userName");
            return (Criteria) this;
        }

        public Criteria andUserNameNotEqualTo(String value) {
            addCriterion("user_name <>", value, "userName");
            return (Criteria) this;
        }

        public Criteria andUserNameGreaterThan(String value) {
            addCriterion("user_name >", value, "userName");
            return (Criteria) this;
        }

        public Criteria andUserNameGreaterThanOrEqualTo(String value) {
            addCriterion("user_name >=", value, "userName");
            return (Criteria) this;
        }

        public Criteria andUserNameLessThan(String value) {
            addCriterion("user_name <", value, "userName");
            return (Criteria) this;
        }

        public Criteria andUserNameLessThanOrEqualTo(String value) {
            addCriterion("user_name <=", value, "userName");
            return (Criteria) this;
        }

        public Criteria andUserNameLike(String value) {
            addCriterion("user_name like", value, "userName");
            return (Criteria) this;
        }

        public Criteria andUserNameNotLike(String value) {
            addCriterion("user_name not like", value, "userName");
            return (Criteria) this;
        }

        public Criteria andUserNameIn(List<String> values) {
            addCriterion("user_name in", values, "userName");
            return (Criteria) this;
        }

        public Criteria andUserNameNotIn(List<String> values) {
            addCriterion("user_name not in", values, "userName");
            return (Criteria) this;
        }

        public Criteria andUserNameBetween(String value1, String value2) {
            addCriterion("user_name between", value1, value2, "userName");
            return (Criteria) this;
        }

        public Criteria andUserNameNotBetween(String value1, String value2) {
            addCriterion("user_name not between", value1, value2, "userName");
            return (Criteria) this;
        }

        public Criteria andFirstTimeIsNull() {
            addCriterion("first_time is null");
            return (Criteria) this;
        }

        public Criteria andFirstTimeIsNotNull() {
            addCriterion("first_time is not null");
            return (Criteria) this;
        }

        public Criteria andFirstTimeEqualTo(Date value) {
            addCriterion("first_time =", value, "firstTime");
            return (Criteria) this;
        }

        public Criteria andFirstTimeNotEqualTo(Date value) {
            addCriterion("first_time <>", value, "firstTime");
            return (Criteria) this;
        }

        public Criteria andFirstTimeGreaterThan(Date value) {
            addCriterion("first_time >", value, "firstTime");
            return (Criteria) this;
        }

        public Criteria andFirstTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("first_time >=", value, "firstTime");
            return (Criteria) this;
        }

        public Criteria andFirstTimeLessThan(Date value) {
            addCriterion("first_time <", value, "firstTime");
            return (Criteria) this;
        }

        public Criteria andFirstTimeLessThanOrEqualTo(Date value) {
            addCriterion("first_time <=", value, "firstTime");
            return (Criteria) this;
        }

        public Criteria andFirstTimeIn(List<Date> values) {
            addCriterion("first_time in", values, "firstTime");
            return (Criteria) this;
        }

        public Criteria andFirstTimeNotIn(List<Date> values) {
            addCriterion("first_time not in", values, "firstTime");
            return (Criteria) this;
        }

        public Criteria andFirstTimeBetween(Date value1, Date value2) {
            addCriterion("first_time between", value1, value2, "firstTime");
            return (Criteria) this;
        }

        public Criteria andFirstTimeNotBetween(Date value1, Date value2) {
            addCriterion("first_time not between", value1, value2, "firstTime");
            return (Criteria) this;
        }

        public Criteria andLastTimeSuccessIsNull() {
            addCriterion("last_time_success is null");
            return (Criteria) this;
        }

        public Criteria andLastTimeSuccessIsNotNull() {
            addCriterion("last_time_success is not null");
            return (Criteria) this;
        }

        public Criteria andLastTimeSuccessEqualTo(Date value) {
            addCriterion("last_time_success =", value, "lastTimeSuccess");
            return (Criteria) this;
        }

        public Criteria andLastTimeSuccessNotEqualTo(Date value) {
            addCriterion("last_time_success <>", value, "lastTimeSuccess");
            return (Criteria) this;
        }

        public Criteria andLastTimeSuccessGreaterThan(Date value) {
            addCriterion("last_time_success >", value, "lastTimeSuccess");
            return (Criteria) this;
        }

        public Criteria andLastTimeSuccessGreaterThanOrEqualTo(Date value) {
            addCriterion("last_time_success >=", value, "lastTimeSuccess");
            return (Criteria) this;
        }

        public Criteria andLastTimeSuccessLessThan(Date value) {
            addCriterion("last_time_success <", value, "lastTimeSuccess");
            return (Criteria) this;
        }

        public Criteria andLastTimeSuccessLessThanOrEqualTo(Date value) {
            addCriterion("last_time_success <=", value, "lastTimeSuccess");
            return (Criteria) this;
        }

        public Criteria andLastTimeSuccessIn(List<Date> values) {
            addCriterion("last_time_success in", values, "lastTimeSuccess");
            return (Criteria) this;
        }

        public Criteria andLastTimeSuccessNotIn(List<Date> values) {
            addCriterion("last_time_success not in", values, "lastTimeSuccess");
            return (Criteria) this;
        }

        public Criteria andLastTimeSuccessBetween(Date value1, Date value2) {
            addCriterion("last_time_success between", value1, value2, "lastTimeSuccess");
            return (Criteria) this;
        }

        public Criteria andLastTimeSuccessNotBetween(Date value1, Date value2) {
            addCriterion("last_time_success not between", value1, value2, "lastTimeSuccess");
            return (Criteria) this;
        }

        public Criteria andLastTimeFailIsNull() {
            addCriterion("last_time_fail is null");
            return (Criteria) this;
        }

        public Criteria andLastTimeFailIsNotNull() {
            addCriterion("last_time_fail is not null");
            return (Criteria) this;
        }

        public Criteria andLastTimeFailEqualTo(Date value) {
            addCriterion("last_time_fail =", value, "lastTimeFail");
            return (Criteria) this;
        }

        public Criteria andLastTimeFailNotEqualTo(Date value) {
            addCriterion("last_time_fail <>", value, "lastTimeFail");
            return (Criteria) this;
        }

        public Criteria andLastTimeFailGreaterThan(Date value) {
            addCriterion("last_time_fail >", value, "lastTimeFail");
            return (Criteria) this;
        }

        public Criteria andLastTimeFailGreaterThanOrEqualTo(Date value) {
            addCriterion("last_time_fail >=", value, "lastTimeFail");
            return (Criteria) this;
        }

        public Criteria andLastTimeFailLessThan(Date value) {
            addCriterion("last_time_fail <", value, "lastTimeFail");
            return (Criteria) this;
        }

        public Criteria andLastTimeFailLessThanOrEqualTo(Date value) {
            addCriterion("last_time_fail <=", value, "lastTimeFail");
            return (Criteria) this;
        }

        public Criteria andLastTimeFailIn(List<Date> values) {
            addCriterion("last_time_fail in", values, "lastTimeFail");
            return (Criteria) this;
        }

        public Criteria andLastTimeFailNotIn(List<Date> values) {
            addCriterion("last_time_fail not in", values, "lastTimeFail");
            return (Criteria) this;
        }

        public Criteria andLastTimeFailBetween(Date value1, Date value2) {
            addCriterion("last_time_fail between", value1, value2, "lastTimeFail");
            return (Criteria) this;
        }

        public Criteria andLastTimeFailNotBetween(Date value1, Date value2) {
            addCriterion("last_time_fail not between", value1, value2, "lastTimeFail");
            return (Criteria) this;
        }

        public Criteria andDayFailCountIsNull() {
            addCriterion("day_fail_count is null");
            return (Criteria) this;
        }

        public Criteria andDayFailCountIsNotNull() {
            addCriterion("day_fail_count is not null");
            return (Criteria) this;
        }

        public Criteria andDayFailCountEqualTo(String value) {
            addCriterion("day_fail_count =", value, "dayFailCount");
            return (Criteria) this;
        }

        public Criteria andDayFailCountNotEqualTo(String value) {
            addCriterion("day_fail_count <>", value, "dayFailCount");
            return (Criteria) this;
        }

        public Criteria andDayFailCountGreaterThan(String value) {
            addCriterion("day_fail_count >", value, "dayFailCount");
            return (Criteria) this;
        }

        public Criteria andDayFailCountGreaterThanOrEqualTo(String value) {
            addCriterion("day_fail_count >=", value, "dayFailCount");
            return (Criteria) this;
        }

        public Criteria andDayFailCountLessThan(String value) {
            addCriterion("day_fail_count <", value, "dayFailCount");
            return (Criteria) this;
        }

        public Criteria andDayFailCountLessThanOrEqualTo(String value) {
            addCriterion("day_fail_count <=", value, "dayFailCount");
            return (Criteria) this;
        }

        public Criteria andDayFailCountLike(String value) {
            addCriterion("day_fail_count like", value, "dayFailCount");
            return (Criteria) this;
        }

        public Criteria andDayFailCountNotLike(String value) {
            addCriterion("day_fail_count not like", value, "dayFailCount");
            return (Criteria) this;
        }

        public Criteria andDayFailCountIn(List<String> values) {
            addCriterion("day_fail_count in", values, "dayFailCount");
            return (Criteria) this;
        }

        public Criteria andDayFailCountNotIn(List<String> values) {
            addCriterion("day_fail_count not in", values, "dayFailCount");
            return (Criteria) this;
        }

        public Criteria andDayFailCountBetween(String value1, String value2) {
            addCriterion("day_fail_count between", value1, value2, "dayFailCount");
            return (Criteria) this;
        }

        public Criteria andDayFailCountNotBetween(String value1, String value2) {
            addCriterion("day_fail_count not between", value1, value2, "dayFailCount");
            return (Criteria) this;
        }

        public Criteria andTotalFailCountIsNull() {
            addCriterion("total_fail_count is null");
            return (Criteria) this;
        }

        public Criteria andTotalFailCountIsNotNull() {
            addCriterion("total_fail_count is not null");
            return (Criteria) this;
        }

        public Criteria andTotalFailCountEqualTo(String value) {
            addCriterion("total_fail_count =", value, "totalFailCount");
            return (Criteria) this;
        }

        public Criteria andTotalFailCountNotEqualTo(String value) {
            addCriterion("total_fail_count <>", value, "totalFailCount");
            return (Criteria) this;
        }

        public Criteria andTotalFailCountGreaterThan(String value) {
            addCriterion("total_fail_count >", value, "totalFailCount");
            return (Criteria) this;
        }

        public Criteria andTotalFailCountGreaterThanOrEqualTo(String value) {
            addCriterion("total_fail_count >=", value, "totalFailCount");
            return (Criteria) this;
        }

        public Criteria andTotalFailCountLessThan(String value) {
            addCriterion("total_fail_count <", value, "totalFailCount");
            return (Criteria) this;
        }

        public Criteria andTotalFailCountLessThanOrEqualTo(String value) {
            addCriterion("total_fail_count <=", value, "totalFailCount");
            return (Criteria) this;
        }

        public Criteria andTotalFailCountLike(String value) {
            addCriterion("total_fail_count like", value, "totalFailCount");
            return (Criteria) this;
        }

        public Criteria andTotalFailCountNotLike(String value) {
            addCriterion("total_fail_count not like", value, "totalFailCount");
            return (Criteria) this;
        }

        public Criteria andTotalFailCountIn(List<String> values) {
            addCriterion("total_fail_count in", values, "totalFailCount");
            return (Criteria) this;
        }

        public Criteria andTotalFailCountNotIn(List<String> values) {
            addCriterion("total_fail_count not in", values, "totalFailCount");
            return (Criteria) this;
        }

        public Criteria andTotalFailCountBetween(String value1, String value2) {
            addCriterion("total_fail_count between", value1, value2, "totalFailCount");
            return (Criteria) this;
        }

        public Criteria andTotalFailCountNotBetween(String value1, String value2) {
            addCriterion("total_fail_count not between", value1, value2, "totalFailCount");
            return (Criteria) this;
        }

        public Criteria andTotalSuccessCountIsNull() {
            addCriterion("total_success_count is null");
            return (Criteria) this;
        }

        public Criteria andTotalSuccessCountIsNotNull() {
            addCriterion("total_success_count is not null");
            return (Criteria) this;
        }

        public Criteria andTotalSuccessCountEqualTo(String value) {
            addCriterion("total_success_count =", value, "totalSuccessCount");
            return (Criteria) this;
        }

        public Criteria andTotalSuccessCountNotEqualTo(String value) {
            addCriterion("total_success_count <>", value, "totalSuccessCount");
            return (Criteria) this;
        }

        public Criteria andTotalSuccessCountGreaterThan(String value) {
            addCriterion("total_success_count >", value, "totalSuccessCount");
            return (Criteria) this;
        }

        public Criteria andTotalSuccessCountGreaterThanOrEqualTo(String value) {
            addCriterion("total_success_count >=", value, "totalSuccessCount");
            return (Criteria) this;
        }

        public Criteria andTotalSuccessCountLessThan(String value) {
            addCriterion("total_success_count <", value, "totalSuccessCount");
            return (Criteria) this;
        }

        public Criteria andTotalSuccessCountLessThanOrEqualTo(String value) {
            addCriterion("total_success_count <=", value, "totalSuccessCount");
            return (Criteria) this;
        }

        public Criteria andTotalSuccessCountLike(String value) {
            addCriterion("total_success_count like", value, "totalSuccessCount");
            return (Criteria) this;
        }

        public Criteria andTotalSuccessCountNotLike(String value) {
            addCriterion("total_success_count not like", value, "totalSuccessCount");
            return (Criteria) this;
        }

        public Criteria andTotalSuccessCountIn(List<String> values) {
            addCriterion("total_success_count in", values, "totalSuccessCount");
            return (Criteria) this;
        }

        public Criteria andTotalSuccessCountNotIn(List<String> values) {
            addCriterion("total_success_count not in", values, "totalSuccessCount");
            return (Criteria) this;
        }

        public Criteria andTotalSuccessCountBetween(String value1, String value2) {
            addCriterion("total_success_count between", value1, value2, "totalSuccessCount");
            return (Criteria) this;
        }

        public Criteria andTotalSuccessCountNotBetween(String value1, String value2) {
            addCriterion("total_success_count not between", value1, value2, "totalSuccessCount");
            return (Criteria) this;
        }

        public Criteria andLatelyLoginTimeIsNull() {
            addCriterion("lately_login_time is null");
            return (Criteria) this;
        }

        public Criteria andLatelyLoginTimeIsNotNull() {
            addCriterion("lately_login_time is not null");
            return (Criteria) this;
        }

        public Criteria andLatelyLoginTimeEqualTo(Date value) {
            addCriterion("lately_login_time =", value, "latelyLoginTime");
            return (Criteria) this;
        }

        public Criteria andLatelyLoginTimeNotEqualTo(Date value) {
            addCriterion("lately_login_time <>", value, "latelyLoginTime");
            return (Criteria) this;
        }

        public Criteria andLatelyLoginTimeGreaterThan(Date value) {
            addCriterion("lately_login_time >", value, "latelyLoginTime");
            return (Criteria) this;
        }

        public Criteria andLatelyLoginTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("lately_login_time >=", value, "latelyLoginTime");
            return (Criteria) this;
        }

        public Criteria andLatelyLoginTimeLessThan(Date value) {
            addCriterion("lately_login_time <", value, "latelyLoginTime");
            return (Criteria) this;
        }

        public Criteria andLatelyLoginTimeLessThanOrEqualTo(Date value) {
            addCriterion("lately_login_time <=", value, "latelyLoginTime");
            return (Criteria) this;
        }

        public Criteria andLatelyLoginTimeIn(List<Date> values) {
            addCriterion("lately_login_time in", values, "latelyLoginTime");
            return (Criteria) this;
        }

        public Criteria andLatelyLoginTimeNotIn(List<Date> values) {
            addCriterion("lately_login_time not in", values, "latelyLoginTime");
            return (Criteria) this;
        }

        public Criteria andLatelyLoginTimeBetween(Date value1, Date value2) {
            addCriterion("lately_login_time between", value1, value2, "latelyLoginTime");
            return (Criteria) this;
        }

        public Criteria andLatelyLoginTimeNotBetween(Date value1, Date value2) {
            addCriterion("lately_login_time not between", value1, value2, "latelyLoginTime");
            return (Criteria) this;
        }

        public Criteria andRemarkIsNull() {
            addCriterion("remark is null");
            return (Criteria) this;
        }

        public Criteria andRemarkIsNotNull() {
            addCriterion("remark is not null");
            return (Criteria) this;
        }

        public Criteria andRemarkEqualTo(String value) {
            addCriterion("remark =", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotEqualTo(String value) {
            addCriterion("remark <>", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkGreaterThan(String value) {
            addCriterion("remark >", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkGreaterThanOrEqualTo(String value) {
            addCriterion("remark >=", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkLessThan(String value) {
            addCriterion("remark <", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkLessThanOrEqualTo(String value) {
            addCriterion("remark <=", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkLike(String value) {
            addCriterion("remark like", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotLike(String value) {
            addCriterion("remark not like", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkIn(List<String> values) {
            addCriterion("remark in", values, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotIn(List<String> values) {
            addCriterion("remark not in", values, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkBetween(String value1, String value2) {
            addCriterion("remark between", value1, value2, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotBetween(String value1, String value2) {
            addCriterion("remark not between", value1, value2, "remark");
            return (Criteria) this;
        }

        public Criteria andLoginMacIsNull() {
            addCriterion("login_mac is null");
            return (Criteria) this;
        }

        public Criteria andLoginMacIsNotNull() {
            addCriterion("login_mac is not null");
            return (Criteria) this;
        }

        public Criteria andLoginMacEqualTo(String value) {
            addCriterion("login_mac =", value, "loginMac");
            return (Criteria) this;
        }

        public Criteria andLoginMacNotEqualTo(String value) {
            addCriterion("login_mac <>", value, "loginMac");
            return (Criteria) this;
        }

        public Criteria andLoginMacGreaterThan(String value) {
            addCriterion("login_mac >", value, "loginMac");
            return (Criteria) this;
        }

        public Criteria andLoginMacGreaterThanOrEqualTo(String value) {
            addCriterion("login_mac >=", value, "loginMac");
            return (Criteria) this;
        }

        public Criteria andLoginMacLessThan(String value) {
            addCriterion("login_mac <", value, "loginMac");
            return (Criteria) this;
        }

        public Criteria andLoginMacLessThanOrEqualTo(String value) {
            addCriterion("login_mac <=", value, "loginMac");
            return (Criteria) this;
        }

        public Criteria andLoginMacLike(String value) {
            addCriterion("login_mac like", value, "loginMac");
            return (Criteria) this;
        }

        public Criteria andLoginMacNotLike(String value) {
            addCriterion("login_mac not like", value, "loginMac");
            return (Criteria) this;
        }

        public Criteria andLoginMacIn(List<String> values) {
            addCriterion("login_mac in", values, "loginMac");
            return (Criteria) this;
        }

        public Criteria andLoginMacNotIn(List<String> values) {
            addCriterion("login_mac not in", values, "loginMac");
            return (Criteria) this;
        }

        public Criteria andLoginMacBetween(String value1, String value2) {
            addCriterion("login_mac between", value1, value2, "loginMac");
            return (Criteria) this;
        }

        public Criteria andLoginMacNotBetween(String value1, String value2) {
            addCriterion("login_mac not between", value1, value2, "loginMac");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}